package com.example.batchdemo.service;

import com.example.batchdemo.model.BulkAdjustment;

/**
 * @Author jason.tang
 * @Date 2019-10-07 08:53
 * @Desc
 */


public interface BulkAdjustmentService {
    public static final String BULK_ADJ_FILE_TYPE_USER = "USER";
    public static final String BULK_ADJ_FILE_TYPE_ORDER = "ORDER";

    public static final String SHEET_NAME_DATA = "Data";

    public static final String BULK_ADJ_STATUS_PENDING = "PD";
    public static final String BULK_ADJ_STATUS_DATA_ERROR = "DE";
    public static final String BULK_ADJ_STATUS_COMPLETED = "CP";

    public static final String BULK_ADJ_ACTION_CREATE_NEW = "C";
    public static final String BULK_ADJ_ACTION_MODIFY = "M";
    public static final String BULK_ADJ_ACTION_SKIP = "S";

    public static final String COL_NAME_ROW_NUM = "rowNum";
    public static final String COL_NAME_USER_NUM = "userNum";
    public static final String COL_NAME_USER_NAME = "username";
    public static final String COL_NAME_ADDRESS = "address";





    BulkAdjustment uploadDataFile(byte[] fileBytes, String fileType, String fileName) throws Exception;


    BulkAdjustment submitBulkAdjData(BulkAdjustment bulkAdjustment);

}
